/*
 ToolBarDelegate.h
 iSpeLL
 
 Created by liulei on 5/30/10.
 Copyright 2010 cool8jay@qq.com. All rights reserved.
 */

#import <Cocoa/Cocoa.h>

@interface ToolBarDelegate : NSObject {
	/* 
     * The view containing the toolbar item; custom items contain a separate
     * view that must be created in Interface Builder and linked to an instance
     * of this delegate to be properly loaded.
     */
    IBOutlet NSView * searchToolbarItemView;
}

/*
 * See documentation in NSToolbar - delegate methods.
 */
- (NSArray *)toolbarAllowedItemIdentifiers:(NSToolbar *)toolbar;

/*
 * See documentation in NSToolbar - delegate methods.
 */
- (NSArray *)toolbarDefaultItemIdentifiers:(NSToolbar *)toolbar;

/*
 * See documentation in NSToolbar - delegate methods.
 */
- (NSToolbarItem *)toolbar:(NSToolbar *)toolbar
     itemForItemIdentifier:(NSString *)itemIdentifier
 willBeInsertedIntoToolbar:(BOOL)flag;

@end
